package com.freeLearning.boot.course.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freeLearning.boot.course.model.VO.CourseReviewPageVO;
import com.freeLearning.boot.course.model.entity.CourseReview;
import com.freeLearning.boot.course.model.query.CourseReviewPageQuery;


public interface CourseReviewService extends IService<CourseReview> {
    IPage<CourseReview> pageQuery(CourseReviewPageQuery courseReviewPageQuery);

    IPage<CourseReviewPageVO> queryPageByCourseId(Integer pageNum, Integer pageSize, Long courseId, Long userId,String sortKey);

    IPage<CourseReviewPageVO> queryPageByCourseIdNoUserId(Integer pageNum, Integer pageSize, Long courseId,Long userId,String sortKey);
}
